<template>
	<div class="g-container">
		<div class="m-system-box">
			<div class="u-system-item" v-for="(item, index) in systemList" :key="index">
				<el-button @click="toLogin(item.name)">{{item.name}}</el-button>
			</div>
		</div>
	</div>
</template>

<script>
	export default {
		data() {
			return {
				systemList: [{
					name: '图巴诺总控系统查询'
				},{
					name: '图巴诺学校系统查询'
				},{
					name: '图巴诺出租屋系统查询'
				}]
			}
		},
		methods: {
			toLogin(val) {
				localStorage.setItem('system_name', val)
				this.$router.replace({
					path: '/Login',
					query: {
						name: val
					}
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.m-system-box {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		height: 100vh;
		padding: 0 0.4rem;

		.u-system-item {
			margin: 0.26rem;
			width: 5.33rem;

			.el-button {
				width: 100%;
				height: 1.06rem;
				border-radius: 0.1rem;
				font-size: 0.37rem;
				font-weight: bold;
			}
		}
	}
</style>
